#ifndef SELECTEMPLOYEEINFOVIEW_H
#define SELECTEMPLOYEEINFOVIEW_H

#include <QWidget>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QString>

class EmployeeManager;

class SelectEmployeeInfoView : public QWidget
{
    Q_OBJECT
public:
    explicit SelectEmployeeInfoView(EmployeeManager *employeeManager, QWidget *parent = nullptr);
    ~SelectEmployeeInfoView();
    void setEmployeeId(const QString &employeeId); // 设置员工ID并自动查询

private slots:
    void onQueryButtonClicked();

private:
    void displayEmployeeInfo(const QMap<QString, QString> &info);
    QGridLayout *infoLayout;
    QLabel *empIdLabel;
    QLabel *empNameLabel;
    QLabel *genderLabel;
    QLabel *positionLabel;
    QLabel *deptNameLabel;
    EmployeeManager *m_employeeManager;
    QString m_employeeId; // 存储当前登录员工ID

signals:

};

#endif // SELECTEMPLOYEEINFOVIEW_H
